Welcome Guest ( Log In | Register )

10 Pages < 1 2 3 4 5 > » Bottom

Outline · [ Standard ] · Linear+

 The Great Tiling WM Adventure + Some Wireless Stuf, Hosted by G-17

views
     
TSfarkinid
post Mar 10 2011, 10:50 AM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


Here is slim.conf
» Click to show Spoiler - click again to hide... «


The thing is, I don't have an .xinitrc anywhere. When I try to put 1 in /home/(username)/ my boot fails. So I'm a little confused.

The command
CODE
find / -name '.xinitrc'
doesn't return any results. Also, with slim, I suspect the reason why my bootup script after slim isn't working is because slim has to be configured to boot into my custom settings. Currently, its on default. Only problem is, I don't know where to put the custom settings.
G-17
post Mar 10 2011, 11:32 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Okay, I have a very busy day ahead of me, so I'll make this quick and will try to check in whenever I have time.

Firstly,
Do you have a file called "login" (probably a script) in your /bin? If yes, what's inside? if it contains stuff other than your personal details (username, password) can you paste the contents here (after removing your personal details, obviously)

Also, try to see if you have a /bin/bash -login /etc/X11/Xsession %session and paste contents here.

A temporary thing you can try for now;
Install "rcconf" from repos and run it (as root or sudo) and disable slim. Then create a ~/.xinitrc and put in whatever you need followed by "&" for each, except for the final exec line...

Example:
CODE
#!/bin/sh

#Enable uim at startup
export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

#US Keyboard
setxkbmap us &

#Touchpad Tap-2-Click
synclient Tapbutton1=1 &

#Wallpaper
feh --bg-scale /home/farkinid/wallpapers/smile.jpg &

exec scrotwm


Make executable (just in case)

Save and reboot. If it works, you should boot into a TTY and asked for your username and password. Then you launch scrotwm by typing 'startx'

if it fails, from tty, delete the ~/.xinitrc, run rcconf again and enable back slim and reboot, and you should go back to square-1, and I'll try to help some more after work or during tea-time if I can escape for a bit.

Sorry if you find typos .. I'm in a rush

This post has been edited by G-17: Mar 10 2011, 11:35 AM
TSfarkinid
post Mar 10 2011, 11:51 AM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


QUOTE(G-17 @ Mar 10 2011, 11:32 AM)
@farkinid
Okay, I have a very busy day ahead of me, so I'll make this quick and will try to check in whenever I have time.

Firstly,
Do you have a file called "login" (probably a script) in your /bin? If yes, what's inside? if it contains stuff other than your personal details (username, password) can you paste the contents here (after removing your personal details, obviously)

Also, try to see if you have a /bin/bash -login /etc/X11/Xsession %session and paste contents here.

A temporary thing you can try for now;
Install "rcconf" from repos and run it (as root or sudo) and disable slim. Then create a ~/.xinitrc and put in whatever you need followed by "&" for each, except for the final exec line...

Example:
CODE
#!/bin/sh

#Enable uim at startup
export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

#US Keyboard
setxkbmap us &

#Touchpad Tap-2-Click
synclient Tapbutton1=1 &

#Wallpaper
feh --bg-scale /home/farkinid/wallpapers/smile.jpg &

exec scrotwm


Make executable (just in case)

Save and reboot. If it works, you should boot into a TTY and asked for your username and password. Then you launch scrotwm by typing 'startx'

if it fails, from tty, delete the ~/.xinitrc, run rcconf again and enable back slim and reboot, and you should go back to square-1, and I'll try to help some more after work or during tea-time if I can escape for a bit.

Sorry if you find typos .. I'm in a rush
*
No worries. Take your time. The laptop is working fine. Its just the little things what I want changed. I'm not in a rush. Have a good day and stop embedding little hentai references in the "[code]" boxes tongue.gif
G-17
post Mar 11 2011, 08:44 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Sorry for the delay.
Did you try what I posted previously, and did it work?
Any other developments?


Added on March 12, 2011, 9:16 pmOn a side note, I'm posting some of my old configs from other tiling WMs, in case anyone wants to play with em.

This one is for AwesomeWM 3.4.4.
Awesome uses Lua, whic I find very tedious. Plus it tends to change syntax from version to version, so what you see here (3.4.4) might not work for later version. I've lost interest in AwesomeWM, tbh, it tries too hard to be a DE, and it has other "features" that I'm not too fond of... I think it should be renamed AwfulWM, honestly.

Anyways, enough ranting, here's my old ~/.config/awesome/rc.lua

I offer no support whatsoever. If you have questions, search Google or the Awesome/Debian/Ubuntu/Arch forums. I can't be bothered with the sh*t WM anymore, an I take no responsibility over anything that happens.

Pastebin with syntax highlighting = http://pastebin.com/xZNcm76R

Same posted below without highlighting;

CODE
— Standard awesome library
   require("awful")
   require("awful.autofocus")
   require("awful.rules")
   — Theme handling library
   require("beautiful")
   — Notification library
   require("naughty")

   — Load Debian menu entries
   require("debian.menu")

   — {{{ Variable definitions
   — Themes define colours, icons, and wallpapers
   beautiful.init("/usr/share/awesome/themes/default/theme.lua")
   — This is used later as the default terminal and editor to run.
   terminal = "urxvtc"
   editor = os.getenv("EDITOR") or "gvim"
   editor_cmd = terminal .. " -e " .. editor
   — editor_cmd = gvim

   awful.util.spawn(os.getenv('HOME').."/scripts/")

   — Default modkey.
   — Usually, Mod4 is the key with a logo between Control and Alt.
   — If you do not like this or do not have such a key,
   — I suggest you to remap Mod4 to another key using xmodmap or other tools.
   — However, you can use another modifier like Mod1, but it may interact with others.
   modkey = "Mod4"

   — Table of layouts to cover with awful.layout.inc, order matters.
   layouts =
   {
   awful.layout.suit.floating,
   awful.layout.suit.tile,
   awful.layout.suit.tile.left,
   awful.layout.suit.tile.bottom,
   awful.layout.suit.tile.top,
   awful.layout.suit.fair,
   awful.layout.suit.fair.horizontal,
   awful.layout.suit.spiral,
   awful.layout.suit.spiral.dwindle,
   awful.layout.suit.max,
   awful.layout.suit.max.fullscreen,
   awful.layout.suit.magnifier
   }
   — }}}

   — { Tags
   — Define a tag table which hold all screen tags.
   tags = {}
   for s = 1, screen.count() do
   — Each screen has its own tag table.
   tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
   end
   — }

   — {{{ Menu
   — Create a laucher widget and a main menu
   myawesomemenu = {
   { "manual", terminal .. " -e man awesome" },
   { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },
   { "restart", awesome.restart },
   { "quit", awesome.quit }
   }

   mymainmenu = awful.menu({ items = { { "Terminal", terminal },
   { "Firefox", ("firefox") }, { "Home", ("thunar") },
   { "Chromium", ("chrome") },
   { "Thunderbird", ("thunderbird") },
   { "awesome", myawesomemenu, beautiful.awesome_icon },
   { "Debian", debian.menu.Debian_menu.Debian },
   { "Exit", ("/home/moogerfooger/.config/awesome/exit") }
   }
   })
   awful.util.spawn(os.getenv("PATH"))

   awful.util.spawn_with_shell("urxvtd -q -o -f")
   awful.util.spawn_with_shell("mocp -S")
   awful.util.spawn_with_shell("gnome-setting-deamon")
   awful.util.spawn_with_shell("xbindkeys")
   awful.util.spawn_with_shell("xcompmgr")
   awful.util.spawn_with_shell("volwheel")
   awful.util.spawn_with_shell("nm-applet")
   —awful.util.spawn_with_shell("feh —bg-scale /home/moogerfooger/pic/dusk.png")
   awful.util.spawn_with_shell("/home/moogerfooger/.config/conky/start.sh")
   awful.util.spawn_with_shell("fcitx -d")

   mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
   menu = mymainmenu })
   — }}}

   — {{{ Wibox
   — Create a textclock widget
   mytextclock = awful.widget.textclock({ align = "right" })

   — Create a systray
   mysystray = widget({ type = "systray" })

   — Create a wibox for each screen and add it
   mywibox = {}
   mypromptbox = {}
   mylayoutbox = {}
   mytaglist = {}
   mytaglist.buttons = awful.util.table.join(
   awful.button({ }, 1, awful.tag.viewonly),
   awful.button({ modkey }, 1, awful.client.movetotag),
   awful.button({ }, 3, awful.tag.viewtoggle),
   awful.button({ modkey }, 3, awful.client.toggletag),
   awful.button({ }, 4, awful.tag.viewnext),
   awful.button({ }, 5, awful.tag.viewprev)
   )
   mytasklist = {}
   mytasklist.buttons = awful.util.table.join(
   awful.button({ }, 1, function (c)
   if not c:isvisible() then
   awful.tag.viewonly(c:tags()[1])
   end
   client.focus = c
   c:raise()
   end),
   awful.button({ }, 3, function ()
   if instance then
   instance:hide()
   instance = nil
   else
   instance = awful.menu.clients({ width=250 })
   end
   end),
   awful.button({ }, 4, function ()
   awful.client.focus.byidx(1)
   if client.focus then client.focus:raise() end
   end),
   awful.button({ }, 5, function ()
   awful.client.focus.byidx(-1)
   if client.focus then client.focus:raise() end
   end))

   for s = 1, screen.count() do
   — Create a promptbox for each screen
   mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
   — Create an imagebox widget which will contains an icon indicating which layout we're using.
   — We need one layoutbox per screen.
   mylayoutbox[s] = awful.widget.layoutbox(s)
   mylayoutbox[s]:buttons(awful.util.table.join(
   awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
   awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
   awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
   awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
   — Create a taglist widget
   mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)

   — Create a tasklist widget
   mytasklist[s] = awful.widget.tasklist(function(c)
   return awful.widget.tasklist.label.currenttags(c, s)
   end, mytasklist.buttons)

   — Create the wibox
   mywibox[s] = awful.wibox({ position = "top", screen = s })
   — Add widgets to the wibox - order matters
   mywibox[s].widgets = {
   {
   mylauncher,
   mytaglist[s],
   mypromptbox[s],
   layout = awful.widget.layout.horizontal.leftright
   },
   mylayoutbox[s],
   mytextclock,
   s == 1 and mysystray or nil,
   mytasklist[s],
   layout = awful.widget.layout.horizontal.rightleft
   }
   end
   — }}}

   — { Mouse bindings
   root.buttons(awful.util.table.join(
   awful.button({ }, 3, function () mymainmenu:toggle() end),
   awful.button({ }, 4, awful.tag.viewnext),
   awful.button({ }, 5, awful.tag.viewprev)
   ))
   volbar.widget:buttons(awful.util.table.join(
   awful.button({ }, 1, function () exec("kmix") end),
   — awful.button({ }, 2, function () exec("amixer -q sset Master toggle") end),
   — awful.button({ }, 4, function () exec("amixer -q sset PCM 2dB+", false) end),
   — awful.button({ }, 5, function () exec("amixer -q sset PCM 2dB-", false) end)
   )) — Register assigned buttons
   volwidget:buttons(volbar.widget:buttons())
   — }

   — {{{ Key bindings
   globalkeys = awful.util.table.join(
   awful.key({ modkey, }, "Left", awful.tag.viewprev ),
   awful.key({ modkey, }, "Right", awful.tag.viewnext ),
   awful.key({ modkey, }, "Escape", awful.tag.history.restore),

   awful.key({ modkey, }, "j",
   function ()
   awful.client.focus.byidx( 1)
   if client.focus then client.focus:raise() end
   end),
   awful.key({ modkey, }, "k",
   function ()
   awful.client.focus.byidx(-1)
   if client.focus then client.focus:raise() end
   end),
   awful.key({ modkey, }, "w", function () mymainmenu:show(true) end),

   — Layout manipulation
   awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
   —dmenu
   awful.key({modkey }, "p", function()
   awful.util.spawn_with_shell( "exe=‘dmenu_path | dmenu -nf ’#888888' -nb '#222222' -sf '#ffffff' -sb '#285577'` && exec $exe")
   end),

   awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
   awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
   awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
   awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
   awful.key({ modkey, }, "Tab",
   function ()
   awful.client.focus.history.previous()
   if client.focus then
   client.focus:raise()
   end
   end),

   — Standard program
   awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
   awful.key({ modkey, "Control" }, "r", awesome.restart),
   awful.key({ modkey, "Shift" }, "q", awesome.quit),

   awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
   awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
   awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
   awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
   awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
   awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
   awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
   awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),

   — Prompt
   awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),

   awful.key({ modkey }, "x",
   function ()
   awful.prompt.run({ prompt = "Run Lua code: " },
   mypromptbox[mouse.screen].widget,
   awful.util.eval, nil,
   awful.util.getdir("cache") .. "/history_eval")
   end)
   )

   clientkeys = awful.util.table.join(
   awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
   awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
   awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
   awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
   awful.key({ modkey, }, "o", awful.client.movetoscreen ),
   awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
   awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end),
   awful.key({ modkey, }, "m",
   function (c)
   c.maximized_horizontal = not c.maximized_horizontal
   c.maximized_vertical = not c.maximized_vertical
   end)
   )

   — Compute the maximum number of digit we need, limited to 9
   keynumber = 0
   for s = 1, screen.count() do
   keynumber = math.min(9, math.max(#tags[s], keynumber));
   end

   — Bind all key numbers to tags.
   — Be careful: we use keycodes to make it works on any keyboard layout.
   — This should map on the top row of your keyboard, usually 1 to 9.
   for i = 1, keynumber do
   globalkeys = awful.util.table.join(globalkeys,
   awful.key({ modkey }, "#" .. i + 9,
   function ()
   local screen = mouse.screen
   if tags[screen][i] then
   awful.tag.viewonly(tags[screen][i])
   end
   end),
   awful.key({ modkey, "Control" }, "#" .. i + 9,
   function ()
   local screen = mouse.screen
   if tags[screen][i] then
   awful.tag.viewtoggle(tags[screen][i])
   end
   end),
   awful.key({ modkey, "Shift" }, "#" .. i + 9,
   function ()
   if client.focus and tags[client.focus.screen][i] then
   awful.client.movetotag(tags[client.focus.screen][i])
   end
   end),
   awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
   function ()
   if client.focus and tags[client.focus.screen][i] then
   awful.client.toggletag(tags[client.focus.screen][i])
   end
   end))
   end

   clientbuttons = awful.util.table.join(
   awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
   awful.button({ modkey }, 1, awful.mouse.client.move),
   awful.button({ modkey }, 3, awful.mouse.client.resize))

   — Set keys
   root.keys(globalkeys)
   — }}}

   — { Rules
   awful.rules.rules = {
   — All clients will match this rule.
   { rule = { },
   properties = { border_width = beautiful.border_width,
   border_color = beautiful.border_normal,
   focus = true,
   keys = clientkeys,
   buttons = clientbuttons } },
   { rule = { class = "MPlayer" },
   properties = { floating = true } },
   { rule = { class = "pinentry" },
   properties = { floating = true } },
   { rule = { class = "gimp" },
   properties = { floating = true } },
   { rule = { class = "Kicad" },
   properties = { floating = true } },
   { rule = { class = "Dia" },
   properties = { floating = true } },
   { rule = { class = "Feh" },
   properties = { floating = true } },
   { rule = { class = "gpicview" },
   properties = { floating = true } },
   — Set Firefox to always map on tags number 2 of screen 1.
   — { rule = { class = "Firefox" },
   — properties = { tag = tags[1][2] } },
   }
   — }

   — {{{ Signals
   — Signal function to execute when a new client appears.
   client.add_signal("manage", function (c, startup)
   — Add a titlebar
   — awful.titlebar.add(c, { modkey = modkey })

   — Enable sloppy focus
   c:add_signal("mouse::enter", function(c)
   if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
   and awful.client.focus.filter(c) then
   client.focus = c
   end
   end)

   if not startup then
   — Set the windows at the slave,
   — i.e. put it at the end of others instead of setting it master.
   — awful.client.setslave(c)

   — Put windows in a smart way, only if they does not set an initial position.
   if not c.size_hints.user_position and not c.size_hints.program_position then
   awful.placement.no_overlap(c)
   awful.placement.no_offscreen(c)
   end
   end
   end)

   client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
   client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
   — }}}


This post has been edited by G-17: Mar 12 2011, 09:18 PM
TSfarkinid
post Mar 14 2011, 01:47 PM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


Sorry G-17, I've been really swamped with work the past week. Haven't tried it yet. Will give it a go coming weekend.


Added on March 16, 2011, 11:29 amHi G-17,

I've tried rcconf... unfortunately it didn't work. It said unable to write to... uh... cna't remember what. Permission denied. And yes i did sudo when i ran it. Also, I don't dare delete xinitrc. I don't know whats gonna happen if i delete it.

Will try using pure CLI to run it. However, for the other things, there is a 'login' in /bin but its unreadable via nano. Its got alot of funky characters with a 'cat /bin/login'.

Running '/bin/bash -login /etc/X11/Xsession %session' results in Xsession: Unable to launch "%session" X session --- "xsession" not found; falling back to default session.

Conundrum

This post has been edited by farkinid: Mar 16 2011, 11:29 AM
Acid_RuleZz
post Mar 16 2011, 03:45 PM

ミウ ❤
*******
Senior Member
6,612 posts

Joined: Jan 2003
From: Tomorrow


QUOTE(farkinid @ Mar 14 2011, 01:47 PM)
Sorry G-17, I've been really swamped with work the past week. Haven't tried it yet. Will give it a go coming weekend.


Added on March 16, 2011, 11:29 amHi G-17,

I've tried rcconf... unfortunately it didn't work. It said unable to write to... uh... cna't remember what. Permission denied. And yes i did sudo when i ran it. Also, I don't dare delete xinitrc. I don't know whats gonna happen if i delete it.

Will try using pure CLI to run it. However, for the other things, there is a 'login' in /bin but its unreadable via nano. Its got alot of funky characters with a 'cat /bin/login'.

Running '/bin/bash -login /etc/X11/Xsession %session' results in Xsession: Unable to launch "%session" X session --- "xsession" not found; falling back to default session.

Conundrum
*
sorry for you sweat.gif sweat.gif

i've succesfully install arch into my usb and run scrotwm via slim. drool.gif

but its bloated tho.. gonna spoil more and learn about arch then start again from scratch laugh.gif
TSfarkinid
post Mar 16 2011, 03:53 PM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


QUOTE(Acid_RuleZz @ Mar 16 2011, 03:45 PM)
sorry for you  sweat.gif  sweat.gif

i've succesfully install arch into my usb and run scrotwm via slim.  drool.gif

but its bloated tho.. gonna spoil more and learn about arch then start again from scratch  laugh.gif
*
But how do you get specific types of applications to run on boot? In arch, there is alot of documentation but for Debian, there doesn't seem to be much.

Seem like Debian + SLiM is rare combination
Acid_RuleZz
post Mar 16 2011, 03:57 PM

ミウ ❤
*******
Senior Member
6,612 posts

Joined: Jan 2003
From: Tomorrow


QUOTE(farkinid @ Mar 16 2011, 03:53 PM)
But how do you get specific types of applications to run on boot? In arch, there is alot of documentation but for Debian, there doesn't seem to be much.

Seem like Debian + SLiM is rare combination
*
yeah.. in Debian i use GDM. Much easier to configure to run dual WM tongue.gif
G-17
post Mar 16 2011, 04:37 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 16 2011, 03:53 PM)
But how do you get specific types of applications to run on boot? In arch, there is alot of documentation but for Debian, there doesn't seem to be much.

Seem like Debian + SLiM is rare combination
*

I'm a bit confused here (I'm really tired right now... busy days)
It's strange that running rcconf under root gave a permissions error, especially since you're not actually trying to remove SLIM but just disable it. It might help if you posted the full error message.
Also, I must again stress that I'm never run SLIM on Debian before. I've always found slim to be neither here or there, if I wanted simple, I did startx and if I wanted a full-featured login manager, I'd install GDM.

Anyways, I suspect there's some problem between SLIM and the way Debian symlinks process links/chains. I'll have to do some digging later.

Debian uses SysV scripts for controlling boot, as opposed to the more simple BSD style init process that Arch uses, which is why there might not be much documentation for SLIM on Debian outside dev mailing-lists. SysV brings the advantage of flexibility, security and scalability, but the downside is it's complexity.

SysV decentralizes the startup process, with most startup scripts loaded individually and located all over the /etc directory, and explaining it to you might prove too long for this thread (and even I don't fully know all the ins and outs, tbh), considering all the run-levels I'll need to go through. For a start, most startup services/daemons/whatever *should* have a script located in /etc/init.d .... try to see if you have a one related to SLIM in there, and check the contents to see what file it looks for.

Sorry I can't really help much right now. It's been a hectic few days for me, as I have a lot of work plus a lot of close acquaintances in Japan whom I'm calling daily to check the situation. sad.gif

In the meantime, you can do some reading here:
http://www.debian.org/doc/user-manuals
Part 11 or the FAQ section might give you some idea of how stuff works in Debian (way clearer than I can explain to you, definitely), but I highly recommend you read as much of the manual as you can, particularly the FAQ and Reference sections. There's a wealth of info in there, and sometimes I go back there to refresh myself even though I've used Debian for so long. It's a complex distro, I admit, but reading those bits might give you a reason of why the devs do what they do.

Edit: Just found this. http://www.comptechdoc.org/os/linux/startupman/index.html
Looks interesting. I'll have to give it a good read when I find enough time. See, I'm no guru!! laugh.gif


Added on March 16, 2011, 4:50 pm
QUOTE(Acid_RuleZz @ Mar 16 2011, 03:45 PM)
sorry for you  sweat.gif  sweat.gif

i've succesfully install arch into my usb and run scrotwm via slim.  drool.gif

but its bloated tho.. gonna spoil more and learn about arch then start again from scratch  laugh.gif
*

LOL ... I've heard many people say many things about Arch, but "bloated" was never one of them laugh.gif ... unless you're comparing to something like Slitaz, Crux or GRML unsure.gif

Arch is pretty nice. Just keep in mind that Arch doesn't actually teach you a lot about Linux as a whole, most of the stuff in the wiki teaches you how to maintain an Arch system, so don't try applying it to other distros. Also, beware of the breakage-heaven called AUR.
I like Arch, but I wouldn't use it on a mission-critical box, mainly due to AUR and the fact that there's no clear roadmap for package signing. You should try GRML one day. It's light, fast (faster in some cases) and secure thanks to still being Debian based, plus I can have have Gnuffy's Spaceman installed on GRML for signed Arch packages. cool2.gif .... Or you should try Gentoo one day if you really wanna learn about Linux, but preferably when you're on holiday or unemployed, cos you'll be spending a lot of time. tongue.gif

This post has been edited by G-17: Mar 16 2011, 08:19 PM
TSfarkinid
post Mar 28 2011, 12:50 PM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


Just to update my adventures smile.gif

I've been reading about runlevels ALOT and I'm still not done yet. But I'm beginning to see the signs of why I can't load the mousetap script into my boot.

It might be because of rcS instead of rc.sysinit but I'm not too sure yet. But I won't change anything until I've got a decent grasp of runlevels.

Again, thanks guys. You all have been really helpful. Also my lappy smells of leet-ness now.
Acid_RuleZz
post Mar 28 2011, 11:02 PM

ミウ ❤
*******
Senior Member
6,612 posts

Joined: Jan 2003
From: Tomorrow


QUOTE(G-17 @ Mar 16 2011, 04:37 PM)
LOL ... I've heard many people say many things about Arch, but "bloated" was never one of them laugh.gif ... unless you're comparing to something like Slitaz, Crux or GRML unsure.gif
*
It was my 1st time with arch.. i installed alot of alien packages that i don't even know what its for. doh.gif But even with all that alien packages it still quite light. Arch migh be my 1st choice if i decide to move out from debian. biggrin.gif

GRML huh.. might give it a try, but i've set my eyes on Slitaz. laugh.gif
TSfarkinid
post Apr 27 2011, 04:57 PM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


Ok, its been a while since I've updated this thread. Actually, I'm looking for help.

So I'm running MoC as my music player now and I've decided I want the name and some other details of the currently playing song on my scrotwm bar.

Unfortunately, my baraction.sh doesn't seem to be working. Can anybody (I mean you G-17) kindly show me a copy of their working baraction.sh? I'll rewrite mine based on yours.
G-17
post Apr 28 2011, 05:10 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Sorry for the lateness. I've been overseas for the past week and only got back today morning.

I don't use baraction.sh, and prefer to pipe good ol' conky into the scrotwm bar. Reason is; older versions of scrotwm had the bar flickering when I used baraction.sh, plus it's just easier to use conky. Note: if you havent installed conky yet, just grap the conky-cli package instead of the heavier conky-all one, since the cli version is all you need for the scrotwm bar.

You can set the scrotwm bar to pipe conky by doing
CODE
bar_action     = conky
in your scrotwm.conf

then you create a .conkyrc and place it in your /home. You don't need to specify fonts or colors, since it can only default to the font and color you specified for the scrotwm bar. Most important is that you keep all the info in 1 single line. Here's a simple example.
CODE
# Conky configuration for ScrotWM Bar

##############################################
#  Settings
##############################################
out_to_x no
background no
out_to_console yes
update_interval 1
total_run_times 0
use_spacer none
#no_buffers yes
#cpu_average_samples 1
#net_average_samples 1
TEXT
   CPU - ${cpu cpu0}.00%   RAM - ${memperc}.00%   Temperature - ${hwmon temp 1}'C   Battery - ${battery_percent BAT0}%   WiFi - ${wireless_link_qual wlan0}%   Uploads - ${upspeedf wlan0}kb/s   Downloads - ${downspeedf wlan0}kb/s

Note: the 'hwmon' part for temperature requires lm-sensors to be installed from your repo (just install and then run 'sensors-detect' as root, and answer yes to everything, and reboot). Again, make sure the line that comes after "TEXT" is all one single line (the LYN forum seems to split the lines when it gets too long)

As for MoC "Now Playing" output in conky, I've personally never done it before, but this should help:
http://blog.mindlesstechie.net/2009/01/12/...rts-moc-player/
http://crunchbanglinux.org/forums/topic/99...-in-your-conky/
In any case, try adding something like "${execpi 2 mocp -Q %title}" to your conky.
I've heard MoC support in conky is a bit buggy, though, so remember to watch your CPU load and temperatures for any memory leaks or throttled scheduling.

Apologies for not being much help with the actual baraction.sh script. Truth be told, I've only ever used dzen2 or conky in most of my tiling WMs, and I've only ever piped MPD output when it comes to wanting to show currently playing tracks. Never personally felt the need to with MoC.

Edot:
Oh, almost forgot. The ScrotWM bar can't show degree symbols ° . You might want to take note

This post has been edited by G-17: Apr 28 2011, 05:24 PM
TSfarkinid
post Apr 29 2011, 10:51 AM

Enthusiast
*****
Senior Member
997 posts

Joined: Feb 2007


Thanks man. I will look through this over the weekend.

One day I'll post a screenie of how my lappy looks now. I finally got urxvt to work with transparency. Bwhahaha... wasted a few company hours doing that. I am proud.
G-17
post Jun 15 2011, 08:55 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
Necrobumping this thread.

If anyone's interested in trying out Ratpoison (one of the all-time great WM's, imho), here's an old config I have:

CODE
nextscreen
unmanage panel
escape C-t

#I use conky piped to dzen2. Uncomment the line bellow if you want the same.
#exec conky | dzen2 -bg '#101010' -fn -*-montecarlo-medium-r-*-*-11-*-*-*-*-*-*-* -ta r -y 0 -x 0
#exec rpws init 3 -k

# Layouts [ ] [|] [|= [-] [+]
bind F1 exec ratpoison -c "select -" -c "only" -c "next"
bind F2  exec ratpoison -c "select -" -c "only" -c "hsplit" -c "next"
bind F3 exec ratpoison -c "select -" -c "only" -c "hsplit" -c "next" -c "focusright" -c "next" -c "vsplit" -c "next"
bind F4 exec ratpoison -c "select -" -c "only" -c "vsplit" -c "next"
bind F5 exec ratpoison -c "select -" -c "only " -c "hsplit" -c next -c "vsplit" -c next -c "focusright" -c next -c "vsplit" -c "next"

banish

#uncomment this in case you want to use Caps Lock as escape. I just have it here for reference, I despise the idea
#exec xmodmap -e 'clear Lock' -e 'keycode 66 = F13'
#escape F13

#Set up the workspace stuff
gnew one
gnewbg two
gnewbg three
gnewbg four
gnewbg five
gnewbg six
gnewbg seven
gnewbg eight
gnewbg nine
gmerge default
gdelete default
#ALT + F* for workspace switching
definekey top M-F1 exec ratpoison -c "gselect 1" -c "select -" -c "only" -c "next" -c "echo one"
definekey top M-F2 exec ratpoison -c "gselect 2" -c "select -" -c "only" -c "next" -c "echo two"
definekey top M-F3 exec ratpoison -c "gselect 3" -c "select -" -c "only" -c "next" -c "echo three"
definekey top M-F4 exec ratpoison -c "gselect 4" -c "select -" -c "only" -c "next" -c "echo four"
definekey top M-F5 exec ratpoison -c "gselect 5" -c "select -" -c "only" -c "next" -c "echo five"
definekey top M-F6 exec ratpoison -c "gselect 6" -c "select -" -c "only" -c "next" -c "echo six"
definekey top M-F7 exec ratpoison -c "gselect 7" -c "select -" -c "only" -c "next" -c "echo seven"
definekey top M-F8 exec ratpoison -c "gselect 8" -c "select -" -c "only" -c "next" -c "echo eight"
definekey top M-F9 exec ratpoison -c "gselect 9" -c "select -" -c "only" -c "next" -c "echo nine"


msgwait 2
rudeness 12
set winname title
set winfmt %n %s %t
set fgcolor #6495ed
set bgcolor #040404
set font "-*-montecarlo-medium-r-*-*-11-*-*-*-*-*-*-*"
set winliststyle column
set inputwidth 400
set waitcursor 1
set padding 1 14 1 1
set fwcolor #040404
set bwcolor #191919
set barpadding 0 0
set wingravity nw
set transgravity center
set bargravity ne
set border 1
set barborder 1
set inputwidth 800


definekey top M-S-Return exec urxvt
definekey top M-m exec $(dmenu_path | dmenu -nb "#3f3f3f" -nf "#dcdccc" -sb "#1e2320" -sf "#f0dfaf" -fn '-*-montecarlo-medium-r-*-*-11-*-*-*-*-*-*-*')
bind k kill
bind R remove
bind u undo
bind d dedicate
definekey top M-Tab focusprev
definekey top M-C-Left exchangeleft
definekey top M-C-Right exchangeright
definekey top M-C-Up exchangeup
definekey top M-C-Down exchangedown
definekey top M-Left resize -20 0
definekey top M-Right resize 20 0
definekey top M-Up resize 0 20
definekey top M-Down resize 0 -20
#definekey top M-d exec "/home/gacchinko/Programs/ratinfo.sh"
definekey top M-w windows
bind o exec ratpoison -c "only" -c "set border 0"
bind v exec ratpoison -c "hsplit" -c "set border 10"
bind h exec ratpoison -c "vsplit" -c "set border 10"
bind s swap
bind n nextscreen

cocooh
post Jul 10 2011, 09:53 AM

✔ Awesomeness ✔
*******
Senior Member
2,789 posts

Joined: Jul 2010
From: Silicon Valley


Still getting my workaround scrotwm laugh.gif

Pengsan sweat.gif

Attached Image
cocooh
post Jul 10 2011, 10:53 AM

✔ Awesomeness ✔
*******
Senior Member
2,789 posts

Joined: Jul 2010
From: Silicon Valley


Actually sweat.gif

I wanna ask , what is the purpose of showing the bash prompt color chart sweat.gif ?

Attached Image
G-17
post Jul 10 2011, 03:07 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@Zai
The color chart is just a means to show your terminal colorscheme People who use a lot of CLI apps usually customize the apps to suit their colorscheme as well.

For example, I see you have mocp running. Do you know that you can change it's look. Press Shift+T and you'll be able to choose themes. Also, open your ~/.moc folder and create a folder called "themes". Then, create a document and paste this inside;

CODE
# Replaces the default configuration: Slob Custom 7
background             = default default
frame                  = magenta   default    
window_title       = blue          default bold    
directory         = yellow         default    
selected_directory     = cyan       default  bold
playlist         = default       default    bold
selected_playlist     = red          default bold
file             = green       default    
selected_file         = white         default  
marked_file         = red        default  bold    
marked_selected_file    = yellow    default   bold
info             = black      default  bold  
selected_info         = white          default    
marked_info         = red        default   bold
marked_selected_info    = yellow        default    bold
status            = blue          default      
title             = red         default   bold  
state             = red           default  
current_time            = cyan    default bold
time_left         = yellow           default  bold  
total_time         = magenta          default          
time_total_frames     = magenta         default    
sound_parameters     = magenta          default    bold
legend             = default       default
disabled         = black         default    
enabled             = blue          default    bold
empty_mixer_bar         = yellow       default
filled_mixer_bar     = yellow       default    reverse
empty_time_bar          = yellow       default
filled_time_bar         = yellow       default    reverse
entry             = red           default
entry_title             = green         default
error                   = red           default    bold
message             = yellow        default    bold
plist_time              = blue         default    
and save and name the file to whatever name you want.

Then select that theme with the same Shift+T action (you can specify what theme to start with in Moc's config file. do a "man mocp" in terminal for the man page) ... cool, right?

You can basically customize all your term apps like that, though the syntax might be different depending on the app.

If you use terminals like URxvt or Xterm, your term colors are controlled by the ~/.Xdefaults file. If you prefer Gnome-terminal or xfce4-terminal, you just right click to bring up the preferences dialog for the GUI color changer (I think)

Edit: BTW, that colorscheme display script is configured tp only align properly with 3 letter words. If you use longer words (like Gaga i n your case) the horiz alignment gets screwed (look at the to line... 47m is supposed to be above the white bar)

This post has been edited by G-17: Jul 10 2011, 03:11 PM
cocooh
post Jul 10 2011, 04:17 PM

✔ Awesomeness ✔
*******
Senior Member
2,789 posts

Joined: Jul 2010
From: Silicon Valley


@G17 , actually I'm planning to install a standalone distro just for scrotwm biggrin.gif

But I'm still in the dilemma of choosing either Aech Linux or Debian laugh.gif

Coz , while I'm using Ubuntu as the base for scrotwm , there is a significant drop in ram usage but not overall as it still runs some of the gnome settings and unnecessary processes

Im still wondering which 1 I should choose to be the base hmm.gif
G-17
post Jul 10 2011, 06:10 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@Zai-Zai
Yeah, Ubuntu tends to bring in a LOT of unwanted dependencies. Even if you do a minimal install from it's mini.iso, it'll still pull all sorts of unwanted stuff the moment you install xorg.

Both Debian and Arch are equally good. It's just a matter of preference, really. Arch isn't as hard to install as people make it out to be. Arch-fanboys think they're experts just because they followed the guide and managed to install it, but seriously, you'll do fine as long as you're patient. Debian is probably faster to install than Arch, but it's harder to dig at the internals, since it's init-based scripts are far more complex than Arch's single rc file. Debian is more secure thanks to having signed packages, but I wouldn't call Arch insecure either. The steps the guide teaches you will encourage you to practice good security.

If you want to set-up something fast and want an out-of-the-box distro that's officially declared stable, try CrunchBang (Openbox version). It's based on Squeeze, so it's as solid as anything out there, at the expense of having an older kernel and packages. If you want something a bit more bleeding edge but still apt based, go for Aptosid Xfce. It's got the fastest installation of any distro (as long as you understand partitioning) and it's as light as an Arch install; 32bit i686 Xfce aptosid takes up around 50mb-55mb RAM at boot, a bit more if you have extra daemons/drivers loaded. You can install ScrotWM in either Crunchbang or Aptosid quite easily and switch via GDM. Edit: There's also Zenix, which is supposed to be very good. It already comes with OpenBox and AwesomeWM out-of-the-box, so you might wanna give that a try.

Of course, if you want ultimate lightness, you either do an Arch install and start X via xinitrc, or do a Debian netinstall or GRML small/medium. Nothing beats these two for lightness, though it does take some time to get a fully functioning system up and running.

The choice is yours. smile.gif

This post has been edited by G-17: Jul 10 2011, 06:16 PM

10 Pages < 1 2 3 4 5 > » Top
 

Change to:
| Lo-Fi Version
0.0237sec    0.74    6 queries    GZIP Disabled
Time is now: 17th December 2025 - 09:57 PM