Skip to content

u/rpetrano

In this archive from Aug 2011 to Jan 2013

0
posts
21
comments
0
media
91
score

He probably just entered your linux in super user mode (init level 1). This can be done by adding 1 to the kernel parameters in grub.

You can't really protect your self from someone who has physical access to your computer but to encrypt your whole hard disk. Grub 2 can handle it.

2 points

First of all, you need to disable X from respawning when crashed.

If you are using inittab to start X:

Edit /etc/inittab and change:

x:5:respawn:your_way_to_open_X 

to

x:5:once:your_way_to_open_X

Since your X won't respawn now, you can use this to manually start X from shell:

init 3; init 5;

If you are using deamon to start X:

Edit /etc/rc.conf and remove your display manager from DAEMONS array.

You can start X manually with:

rc.d start $the_thing_you_removed_from_rc_conf

Running firefox from shell

Kill all firefox processes. Press Ctrl+Alt+F2 to go to shell, login as user, then type:

DISPLAY=:0 firefox

If it doesn't work with :0, try with :1, but 0 should work. You can even save the whole output to a file:

DISPLAY=:0 firefox &> logfile

Also try this:

DISPLAY=:0 firefox -safe-mode  &> logfile

This will disable addons and such things.

Checking the logs

Also check /var/log/Xorg.0.log and dmesg. You can do:

grep '(EE)' /var/log/Xorg.0.log | less

to display all errors from Xorg log. Do this after Xorg crashes (and before starting new one). Also try:

dmesg | tail -n 100 | less
8 points

.... or you can use this little awk script:

#!/bin/awk -f

$3 ~ /^(installed|upgraded)$/ {
  pkg[$4] = 1
  next
} 

$3 == "removed" {
  pkg[$4] = 0
} 

END {
  for (i in pkg) if (pkg[i]) print i
}

Save it somewhere where you have good enough permissions (home or Desktop). Then run:

chown +x file_name

Now you can run the script like this:

./file_name /var/log/pacman.log

This will print you all the packages you installed recently. Since you installed 400 packages, you can do this to get only 400 last packages:

./file_name /var/log/pacman.log | tail -n 400

However I recommend saving this to a file:

./file_name /var/log/pacman.log | tail -n 400 > aur_list

So you can edit the aur_list file and do the same like in my first post.

P.S. Ofc you have to replace file_name with name of the awk script you saved when running my commands.

EDIT: change head to tail

4 points

You can use

pacman -Qm

to find all packages installed from AUR or on your own. So you can create a list of packages from AUR and store it in file:

pacman -Qmq > aur_list

Then, you will want to edit aur_list file, and delete packages you want to keep from the file. Then you can delete all packages from that file by using:

pacman -Rsc $( cat aur_list )

Be carefull what you delete. You might want to use -R instead of -Rsc.

-m, --foreign
           Restrict or filter output to packages that were not found in the sync database(s). Typically these are packages that were downloaded manually and
           installed with --upgrade.
6 points

... And including stuff you don't need. And slowing your computer down. And increasing memory usage. And limited customization and configuration options if compared to WM only setups....

Only benefits are nice GUIs and the fact you don't have to configure anything for stuff to work! But, that's a flaw too. It's not configured how you want.

12 points

Not at all. I used to have DE and I've managed to escape from it's claws of fancy (3D) effects. Now I have customized my desktop so much that someone else needs manuals to work on it, literally, but my productivity increased for at least double, if not more (if I calculate the slowness of the system with DE with speed of pure WM)

16 points

x:5:respawn:/usr/sbin/lxdm /dev/null 2>&1

Should be:

x:5:respawn:/usr/sbin/lxdm &> /dev/null < /dev/null

To explain: "&> /dev/null" does the same as "> /dev/null 2>&1" (note that you forgot > before /dev/null) so I prefer to just type "&> /dev/null". The < /dev/null part is used to take tty input away from lxdm (which can sometimes freeze the tty).

This, however, might not solve the problem.

If not: Send us some files.

I need:

/var/log/lxdm.log -> just after the blue screen, and the normal one (after running startx for a while)

/var/log/Xorg.0.log -> the same as above.

Check /var/log/errors.log and dmesg command for anything related (just after the blue screen, look from the bottom up). If you found something send it.

/etc/X11/xorg.conf -> if you have it

/etc/X11/xorg.conf.d/* -> all the files in directory.

Then, change temporarily inittab:

x:5:respawn:/usr/sbin/lxdm &> /dev/null < /dev/null

to

x:5:respawn:/usr/sbin/lxdm &> /root/inittab.log < /dev/null

This will save any output and errors during the blue screen to your /root/inittab.log. This was previously thrown away to /dev/null. init 5 and send this file.

/etc/inittab - whole.

Please use pastebin if not problem :)

3 points

Client part (javascript/html5) is not important. People will have client source code anyway, since it is javascript, and people will be able to change every bit of it.

You don't care what ppl do with their client, as long as all this stays on the client. So you got to protect the server the best you can. On server-side you must check everything.

For example, there could be a hack that user can see trough walls. But as long as server don't send data about ppl behind the wall, it's perfectly OK.

Also, they could increase their FPS very easily, as attempt to speed-hack, but again, if your server makes sure that the player is moving normal for all other players, you just don't care.

Don't go with obfuscation. Security trough obscurity was and always will be no security at all. Even compiled games can be reverse engineered and thus hacked easily because developers used obfuscation of the client instead of properly securing the server. That's why I can't enjoy CoD2 anymore. :(

TLDR: Forget about securing the client and secure it on server. NEVER TRUST THE CLIENT.

Edit: securing the client is important, but securing it so hackers can't do XSS, CSRF, memory overflows and other javascript based attacks used to steal identity of other users. But that is beyond the thread's subject.

5 points

It can be really dangerous. (especially .install files which I think nobody inspects). .install file can erase all you hard disk. It basically have root access over whole your system.

the PKGBUILD file by it self is fakeroot-ed. That means it can't delete everything but can inject virus or something like that in the program (and then virus can delete everything :D).

Anyway I think reading comments is simplest way to protect your self if you're not friend with BASH.

Reallity: I have spent too much time configuring my space machine to be fucked by some troll package. I check every packet I build. But I have never found something bad inside.

10 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.