Linux
-
remove a user from a specific groupComputer/linux 2013. 10. 28. 14:20
The old post shows how to add a user to a specific group. From time to time, I need to remove a user from a specific group. So here what I summarize how to do this.2009/06/29 - [computer/linux] - add a user to a specific group remove a user from a specific groupHere auser is the fake account to be removed from www-data groupStep 1# vigrchange from auser:x:1001:www-data to auser:x:1001:Then they ..
-
convert ogg to mp3 by avconv on Debian LinuxComputer/linux 2013. 8. 20. 12:41
The simple and naive command, which I think, be fitted to almost all situation, is avconv -i input.ogg output.mp3, because of its man page as follows: By default avconv tries to pick the "best" stream of each type present in input files and add them to each output file. For video, this means the highest resolution, for audio the highest channel count. For subtitle it's simply the first subtitle ..
-
optimal options for rdesktop for connection to window serverComputer/linux 2013. 8. 8. 15:44
rdesktop -x 0x80 -k ko -g 1280x1024 -D -z -a 16 -N -K 000.000.0.004 -x 0x80 : clean font -k ko : Korean (Hangul) support -g 1208x1024 : monitor optimal resolution -z: enable rdp compression -D: hide window manager decorations -a 16 :connection colour 16 depth -N: enable numlock syncronization -K: keep window manager key bindings One can add the following alias in .bash_alias :alias w7='rdesktop ..
-
format usb stick with fat32Computer/linux 2013. 4. 2. 17:54
Check where the usb stick is mounted. $ tail -f /var/log/messagesApr 2 17:49:27 jhleepc kernel: [352495.842297] sd 18:0:0:0: [sde] 31358976 512-byte logical blocks: (16.0 GB/14.9 GiB) Apr 2 17:49:27 jhleepc kernel: [352495.848464] sde: sde1 $ mkfs.vfat -F 32 /dev/sde1 -n usb16g
-
merge lines of file by using pasteComputer/linux 2013. 3. 19. 19:53
Linux is always so powerful to do something, in my life. And it makes my life ease...Sometimes, I need a special tool to merge two or multiple files into a file. So here is the neat solution for that. $ more {1,2}.dat :::::::::::::: 1.dat :::::::::::::: 1 2 3 :::::::::::::: 2.dat :::::::::::::: A B C $ paste {1,2}.dat 1 A 2 B 3 C $ paste -d" " {1,2}.dat 1 A 2 B 3 C $ paste -d"," {1,2}.dat 1,A 2,..
-
ClusterSSHComputer/linux 2012. 12. 5. 17:15
Description ClusterSSH controls a number of xterm windows via a single graphical console window to allow commands to be interactively run on multiple servers over an ssh connection.at http://sourceforge.net/projects/clusterssh/ 1) Install clusterssh via aptitute install clusterssh 2) Add the following to $HOME/.csshrc terminal_args = -fg green terminal_font = 7x14 clusters = controls jhlee risp ..