LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

mount scripts

Posted 08-27-2012 at 02:39 PM by ted_chou12

These are scripts that searches for local drives and network shares (cifs). I am putting this up for whoever looking for a ready made script also for my future references:
Code:
#mounts start with f
tbmounted=(f g h i j k l m n o p q r s t u v w x y z)

for each in "/dev/sd"* ; do
	mname=${each##*/}
	
	for alphabet in ${tbmounted[@]} ; do
		if [ "$mname" == "sd$alphabet" ] ; then
				mounts=$(mount | grep
...
Member
Posted in Uncategorized
Views 797 Comments 0 ted_chou12 is offline
Old

ibus input How TO

Posted 08-23-2012 at 09:27 AM by ted_chou12

I am able to input thru ibus, I am using slackware 13.37 vl 70. Please keep in mind of the model:
http://en.gentoo-wiki.com/wiki/IBus
after installing ibus and desired input method:
Code:
touch /etc/X11/xinit/xinput.d/ibus.conf
Quote:
The following code should be placed into ibus.conf:
Code:
#!/bin/sh

export XMODIFIERS="@im=ibus" 
export GTK_IM_MODULE="ibus" 
#export QT_IM_MODULE="ibus" 
export QT_IM_MODULE="xim"
...
Member
Posted in Uncategorized
Views 6461 Comments 3 ted_chou12 is offline
Old

sendmail server at port 25

Posted 08-21-2012 at 09:17 AM by ted_chou12
Updated 08-21-2012 at 09:55 AM by ted_chou12

borrowed from: https://n00bsys0p.wordpress.com/2010...r/#comment-366
Quote:
Hi folks!!

I almost can’t believe how long it’s been since I last posted anything on here! I’ve learnt loads, so undoubtedly I’ll be making a few new posts in the near future! Anyway, on with the post…

Setting up Sendmail in a full install of Slackware 12+ (I’ve not tried it in any previous versions) is as easy as 123… Just su to root, and enter the
...
Member
Posted in Uncategorized
Views 841 Comments 0 ted_chou12 is offline
Old

display chinese properly

Posted 08-17-2012 at 04:01 AM by ted_chou12

Hi, I just made the machine be able to display chinese properly. First, choose a font from your windows directory, usually mingliu.ttc or kaiu.ttf. Since the chinese character db is huge, these files are usually a few mb in size. Copy a desired copy to /usr/share/fonts/ttf and run fc-cache -f -v thru terminal should be able to do it. Ofcourse a reboot is always a recommended option. In addition, since chinese db is the largest, if you chose a ttf/ttc file over ~20mb, jap and kor can usually display...
Attached Files
File Type: txt quickbrown.txt (4.3 KB, 4 views)
Member
Posted in Uncategorized
Views 678 Comments 0 ted_chou12 is offline
Old

automount and umount script

Posted 08-16-2012 at 12:30 PM by ted_chou12

This is a sciprt that automounts and unmounts usb devices, because I realized my system does not consistently automount drives, and sometimes gets mounted incorreclty:
Code:
#mounts start with f
tbmounted=(f g h i j k l m n o p q r s t u v w x y z)

for each in "/dev/sd"* ; do
	mname=${each##*/}
	
	for alphabet in ${tbmounted[@]} ; do
		if [ "$mname" == "sd$alphabet" ] ; then
				mounts=$(mount | grep
...
Member
Posted in Uncategorized
Views 716 Comments 0 ted_chou12 is offline

  



All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration