Slackware :: How To Personalize Bash With Own Language?
May 16, 2010
In other distributions I've tried (debian, arch, ubuntu, frugalware, etc) the shell is localized in my own language (italian). In slackware it's pure english. How can I use my own language?
I have this cool bash script that I worked hard on. But it broke down when it can across files that had non-English characters. Another small problem was getting it to descend into a directory. If it renamed a directory it would not descend into that dir to rename the other files. I would have to run the script twice on the same directory.
Here is the script: Code: find -type d -o -regextype egrep -iregex '(.*.ogg|.*.mp3|.*.wav)' | while read s do rename -v 'y/A-Z/a-z/' "$s" done find -type d -o -regextype egrep -iregex '(.*.ogg|.*.mp3|.*.wav)' | while read n do rename -v 's/ /_/g' "$n" done A French name like this:
Code: Chateau De Sable (imagine accents above the letter a) became this:
Code: ch303242tea_de_sable This is not what I wanted.
Why would the script not descend into a directory after it was renamed?
After trying to personalize GDM's login screen, I have been able to change the background (If anyone know how to personalize GDM's login screen, Sometimes when I go on the login screen, I see a gray box without anything on it (I try ALT+CTRL+F# and ALT+CTRL+BACKSPACE) but nothing is shown. (No user list nor white box to enter username). So I must restart while it doesn't appear. Here is what GDM's error log gives me ( /var/log/:0-greeter.log ) :
Code: Gtk-Message: Failed to load module "atk-bridge": libatk-bridge.so: cannot open shared object file: No such file or directory (gnome-settings-daemon:1686): Bonobo-WARNING **: Bonobo must be initialized before use (process:1705): DEBUG: Greeter session pid=1705 display=:0.0 xauthority=/var/run/gdm/auth-for-gdm-dn4VnG/database (gnome-settings-daemon:1686): GdkPixbuf-CRITICAL **: gdk_pixbuf_format_get_name: assertion `format != NULL' failed
I downloaded my language specific package of thunderbird from official mozilla repository but when I tried install to slackware 64 could see that package is totally different than Slackware source. There are some slackbuild for compile official thunderbird packages? or how can I change language from slackware source?
I have searched and searched and maybe I don't know how to articulate this issue with out just posting the problem I'm having. Every time I bring up a terminal window I get the following "Header"
To be honest I cheated and used the .bashrc / .profile files from Ubuntu and all was working fine for a while now and it seems something changed to cause this... any ideas on why I am getting this? I checked my .bashrc and my /etc/profile and it doesn't look like anything is amiss..
ive used ubuntu and fedora before, but i asked around for the "best" linux distro and they told me slackware or archlinux so i desided to pick slackware ive installed it and when im in the console mode its the swedish keyboard settings, that i choose in the install but when i go into visual mode startx i dont have the swedish keyboard so i was wondering if eny of you know how to change it
I originally made this post in Linux-General, but only one person was really answering the question and now he hasn't been responding, so I've come here since Scim is also Slackware related.Simply put, I need to be able to use Scim to input the Korean language.Here's the original thread:[URL]
I am trying to switch to KDE4.4.5 on my main machine. I installed the KDE packages and also the german language file. Everything works fine except the language settings. When I try to start it crash and a KDE crash dialog opens that gives this "developer information":
Code:
Application: System Settings (systemsettings), signal: Segmentation fault Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.2200.5-gdb.py", line 9, in <module> from gobject import register
[code].....
It works on my netbook. I run on both machines Slackware 13.1. The only difference I can think of is that KDE was pre-installed on my netbook and I just upgraded it. On my main machine I installed all packages except the packages of kde and kdei.
I have some music in another language, but when I open the songs in Banshee, their song names just come up as weird characters (like μ).I went to [System --> Administration --> Language Support] and installed support for that language, but the songs still come up like μ. (But in Nautilus, their proper names show).
I know the solution is to change my whole system language to that language, but I don't want to do that, as I am not very fluent in it. Is there any way to enable support for that language while keeping English as the language used to display my desktop?
One computer .... three users .... three languages. How do you make that happen? User A speaks English and is happy with English. No problem. User B needs to use Chinese and would like the full system in Chinese. User C needs to use Thai and Chinese. They would prefer their menus to be in Thai and can use iBus for Chinese entry. How do you set up the system so that each user can select their system language when they login?
While installing Ubuntu 10.10 I chose the wrong language for my keyboard. I tried to fix this in keyboard preferences and it seemed to work. The correct one I need is USA (and don't know exactly the difference between USA and USA alternative international). But every time I boot my laptop I get the old language back (Dutch) while USA is above the others in my preferences.
i recently got a french msi wind U100x running on linux suse enterprise 10 sp1. (i am french and wanted a light netbook with french keyboard)i am totally new to linux and i believe that msi wind is not helping.because i am more used to english for settings, i set the main language to english, but it seems that it automatically reconfigures my keyboard mapping to english as well, so that azerty becomes qwerty.i reset it back to french, so now my keyboard is french, but so is the system.is there a way to differentiate keyboard from main user setting language?
I've noticed something, and hoped there was a work around.when I write a simple bash script, and run it, if I close the terminal i ran the bash script inside, the bash script stops. What are the solutions for this? Basically I want to run my bash script and close the terminal, keep the bash script running.
Does any one knows how to set an schedule for fire fox to terminate loading some IP. or restricting people to accessing some websites from your system..?I mean to set some restriction option to Fire Fox for third party..
I'm trying to change the Xfce Terminal Emulator prompt from bash-4.1$ to something like what kconsole has. If i issue a /bin/bash -l in the terminal, then I get the prompt and the colors that I want, but I'd like this to automagically happen when I click the Terminal icon in the Xfce panel.This is for Slackware 13.37 (32bit) and Terminal 0.4.6
I have a problem when i ried run this command (export HISTTIMEFORMAT="%F %T ") on slackware 13.0. the answer is the following (-bash: HISTTIMEFORMAT: readonly variable) I am running this command on the bash like root.
I've been messing around with Slackware 13.1 and I screwed something up. I was trying to get Wicd to start automatically at startup so I found a chmod... line of code online and copy/pasted it on my command line. Now whenever I boot the computer, when I get to the KDE desktop, the BASH window opens, Opera opens and I get a bunch of Wicd error windows. How can I fix this?
I recently upgraded my -current box, and now when I try to run sbopkg I get the exact error described in the following thread:[URL].. The error fwiw is as follows:
root@catbutt:~# sbopkg ERROR sbopkg: Invalid repository descriptor Line SBo 13.0 "SBo repository for Slackware 13.0" _SBo rsync slackbuilds.org::slackbuilds/13.0 GPG of /etc/sbopkg/repos.d/40-sbo.repo specifies an unknown fetching tool (rsync).
seems likely given the discussion in that previous thread that the bash upgrade (to 4.1.002) in the recent -current onslaught is responsible?
Writing a bash script and I need to check if a known HD partition is mounted or not. I do not think /etc/mtab is the place to check. Would /proc/mounts always work? To make it simple like this : cat /proc/mounts | grep /dev/sdb2
I upgraded from Slackware 64 13.1 to Slackware 64 13.37 a week or so ago. I am now having a perceptible delay of a few seconds when launching commands from the command line, say for example: screen -R.
I'm on a Dell Inspiron 6000. I installed i8kutils and it works. Fan speed reduces CPU temp from 50C to 44C. A start-up script invokes the i8k module: $ udo /usr/sbin/modprobe i8k force=1 which creates /proc/i8k. The man page for i8kctl is straightforward: a few simple commands to read info from the aforementioned file.So. I know nothing about writing even basic bash scripts. I gave it a go here but I know this is way wrong. Would anyone like to help a guy out? This is my starting point (don't laugh):
Code: #!/bin/bash # script to toggle fan speed low/high
I was trying to get rid of qtconfig's error message "QGtkStyle was unable to detect the current GTK+ theme.".
So I created the file ~/.gtkrc-2.0 with this content:
Code: gtk-theme-name="Xfce" Then I had to read this file after logging in (or at least, when I start X. So I created a ~/.bash_profile file with the following line:
Code: export GTK2_RC_FILES="$HOME/.gtkrc-2.0" When I now login, I get this message: Code: -bash: export: command not found Any idea what could cause this problem?
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.