Re: [arch-general] i3 and .zprofile
Hello, > The problem is, that i3 does not seem to spawn a login shell correctly > (is this even possible?). In gnome3 my settings in .zprofile are > applied globally and just fine. In i3 the entire .zprofile is missed. > Since .zprofile is sourced by interactive login shells, I guess that > there might be a problem. Am I missing something here? Have you tried changing your default shell the "old fashined way"? $ chsh /usr/bin/zsh Then re login. -- Alfredo Palhares GPG/PGP Key Fingerprint 68FC B06A 6C22 8B9B F110 38D6 E8F7 4D1F 0763 CAAD signature.asc Description: PGP signature
[arch-general] Cannot tether from Android using USB or bluetooth
Hello fellow Arch Linux users, I recently tried to use USB tethering, without success. The interface just won't come up. I enabled the usb tethering on the phone, but ip link didn't show any new interface: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp0s25: mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000 link/ether 28:d2:44:6c:0b:f8 brd ff:ff:ff:ff:ff:ff 3: wlp3s0: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 7c:7a:91:21:19:39 brd ff:ff:ff:ff:ff:ff 5: wwp0s20u4i6: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 02:15:e0:ec:01:00 brd ff:ff:ff:ff:ff:ff (wwp0s20u4i6 is my builtin modem interface) journalctl -k tells me the following: myhost kernel: usb 1-1: device descriptor read/64, error -110 myhost kernel: usb 1-1: new low-speed USB device number 37 using xhci_hcd myhost kernel: usb 1-1: device descriptor read/64, error -71 myhost kernel: usb 1-1: device descriptor read/64, error -110 myhost kernel: usb 1-1: new low-speed USB device number 38 using xhci_hcd myhost kernel: usb 1-1: Device not responding to setup address. myhost kernel: usb 1-1: Device not responding to setup address. myhost kernel: usb 1-1: device not accepting address 38, error -71 myhost kernel: usb 1-1: new low-speed USB device number 39 using xhci_hcd myhost kernel: usb 1-1: Device not responding to setup address. myhost kernel: usb 1-1: Device not responding to setup address. myhost kernel: usb 1-1: device not accepting address 39, error -71 myhost kernel: usb usb1-port1: unable to enumerate USB device myhost kernel: usb 1-1: new high-speed USB device number 40 using xhci_hcd myhost kernel: cdc_acm 1-1:1.1: ttyACM3: USB ACM device myhost kernel: usb 1-1: USB disconnect, device number 40 myhost kernel: cdc_acm 1-1:1.1: failed to set dtr/rts myhost kernel: usb 1-1: new high-speed USB device number 41 using xhci_hcd myhost kernel: rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-:00:14.0-1, RNDIS device, aa:bb:cc:dd:ee:ff myhost kernel: rndis_host 1-1:1.0 enp0s20u1: renamed from usb0 myhost kernel: usb 1-1: USB disconnect, device number 41 myhost kernel: rndis_host 1-1:1.0 enp0s20u1: unregister 'rndis_host' usb-:00:14.0-1, RNDIS device myhost kernel: usb 1-1: new low-speed USB device number 43 using xhci_hcd The important stuff seems to be here: rndis_host 1-1:1.0 enp0s20u1: renamed from usb0 usb 1-1: USB disconnect, device number 41 rndis_host 1-1:1.0 enp0s20u1: unregister 'rndis_host' usb-:00:14.0-1, RNDIS device usb 1-1: new low-speed USB device number 43 using xhci_hcd The interface comes up but its immediately down, for some weird reason. I can't reproduce the problem every time. Anyone can point me on how to debug this further? Regards, -- Alfredo Palhares GPG/PGP Key Fingerprint 68FC B06A 6C22 8B9B F110 38D6 E8F7 4D1F 0763 CAAD signature.asc Description: PGP signature
Re: [arch-general] Cannot use monitor in 1920x1080 anymore
Hello everyone, Thanks for your answers. I came on the office earlier today just to test this out and: $ xrandr Screen 0: minimum 8 x 8, current 3286 x 1080, maximum 32767 x 32767 eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 277mm x 156mm 1366x768 60.00*+ 1024x768 60.00 800x600 60.3256.25 640x480 59.94 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP2-1 disconnected (normal left inverted right x axis y axis) DP2-2 disconnected (normal left inverted right x axis y axis) DP2-3 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 477mm x 268mm 1920x1080 60.00*+ 1680x1050 59.95 1280x1024 75.0260.02 1152x864 75.00 1024x768 75.0860.00 800x600 75.0060.32 640x480 75.0060.00 720x400 70.08 HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) The problem appears to have sorted itself out over the course of a week. I did not upgraded my system, I avoided it at all costs. I did not like that the problem sorted itself out. I will test it, if the problem reappears, I will get X.org logs. (Being wherever they are). Regards, -- Alfredo Palhares GPG/PGP Key Fingerprint 68FC B06A 6C22 8B9B F110 38D6 E8F7 4D1F 0763 CAAD signature.asc Description: PGP signature
[arch-general] Cannot use monitor in 1920x1080 anymore
Hello fellow Arch users, Suddenly I cannot use my external monitor in the 1920x1080 mode, I add the following script that run every time I connect my thinkpad to the base: ``` #!/bin/bash set -x xrandr --output DP2-3 --mode 1920x1080 --right-of eDP1 xset m 1/2 1 ``` And after a update (I think) i can't use this resolution anymore. But when connecting the monitor to the laptop I still have that resolution ``` $ xrandr # Connected to the base Screen 0: minimum 8 x 8, current 2646 x 1024, maximum 32767 x 32767 eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 277mm x 156mm 1366x768 60.00*+ 1024x768 60.00 800x600 60.3256.25 640x480 59.94 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP2-1 disconnected (normal left inverted right x axis y axis) DP2-2 disconnected (normal left inverted right x axis y axis) DP2-3 connected (normal left inverted right x axis y axis) 1024x768 60.00 + 75.08 1280x1024 75.0260.02 800x600 75.0060.32 640x480 75.0060.00 720x400 70.08 HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) ``` ``` $ xrandr # Connected to the laptop VGA Screen 0: minimum 8 x 8, current 2646 x 1024, maximum 32767 x 32767 eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 277mm x 156mm 1366x768 60.00*+ 1024x768 60.00 800x600 60.3256.25 640x480 59.94 DP1 disconnected (normal left inverted right x axis y axis) DP2 connected (normal left inverted right x axis y axis) 1920x1080 60.00 + 1680x1050 59.95 1280x1024 75.0260.02 1152x864 75.00 1024x768 75.0860.00 800x600 75.0060.32 640x480 75.0060.00 720x400 70.08 DP2-1 disconnected (normal left inverted right x axis y axis) DP2-2 disconnected (normal left inverted right x axis y axis) DP2-3 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) ``` Any ideas how can I debug this problem further ? -- Regards, Alfredo Palhares
[arch-general] Installing Archlinux on a Panasonic toughbook U1
Since my thread on the forums did not got very much attraction here it goes, I have a Panasonic Touchbook CF-U1 for those who not to care to read the link its a rugged small pc with an Intel Atom in it. The machine will have 2 main uses: - Replace the laptop on my garage, (i like to mess with mechanic stuff on my spare time, mostly offroad machines) it will be used to view some pdf (service manuals and whatnot) and use tunning software and logic analizyer so on, i would be running it on an external keyboard. - Onboard computer on my offroad truck, I plan to use the GPS for navigation proposes and as data logger of the engine Electronic managemnte system. And maybe some light work on those sunny days where I feel like working outside (have you tried using your laptop on the sunlight ? it sucks). I am a tiller wm lover (DWM and AwesomeWM) but I don't think a tller would be the most idicated, I would love a mix of normal wm with a touchscreen friendly interface. Something like the Asus EEE pc 701 (the first one) had that modded Ice VW menu. I did not tried to install the system yet, but I started the live disk, and these are my first toughts: - Wireless works out of the box - Fn key does not work (extremely necessary) - Dual battery leds do not work, it does not show which battery is using, it shows the led that is connected to the AC power, the batterie management seems to work fine tough. - The accessorie keys do not work, altough I think i can fix that with setkeycodes, not really important right now. I will use full system encryption according to the wiki, just because I want to, that should be a problem. I want to collect as much information as possible before tackling the installation. Please drop your opinions or links to any information you might think its useful Some links: http://www.emperorlinux.com/mfgr/panasonic/ant/ - A company that seels this devices with linux pre installed, altough it does not document the installation, nor do I think they're still in business, since I did not get any reply from them. http://forums.fedoraforum.org/showthread.php?t=201018 - Old thread https://www.youtube.com/watch?v=xVdAYgt4B9g - A video of it running ubuntu, so its possible, but again i dont find any documentation. http://forum.notebookreview.com/panason … cf-u1.html -- Regards, Alfredo Palhares
Re: [arch-general] Ruby gem packages in Arch
I agree with you, some ruby-packages just are a royal pain in the arse to maintain. Sometimes i wish I just when with rbenv[1] and call it a day. I still have some packages that use the old naming convention. But like you said the worst scenerio is to deal with multiple versions, like one fact you need to update an gem, but packages that depend on it need an older version of it, so now you have to have 2 versions of that gem. It can be done, we just need more man power to put quality packages. Also, I would like to have a tool to check the AUR packages version agains the rubygems so we can them more easily updated, has anyone written such a script ? [1] https://github.com/sstephenson/rbenv -- Regards, Alfredo Palhares
Re: [arch-general] Super weird dd problem.
Hello, > It would be good to know which usb drive we are talking about, if it has > any "features" such as U3 or if it was an offer and came with publicity > materials or something like that. It an old arse pen drive, but I tried with several devices, the problem is common to them. > On another note, it should be decided where to continue the discussion, > cross posting is not such a good idea as some people will not be kept on > the loop. On the forum it might get more exposure but on the ML it might > get the attention of people with more knowledge/experience (some people > only check the forum, others only check the ML, you decide). Okay okay. -- Regards, Alfredo Palhares
Re: [arch-general] Super weird dd problem.
Excerpts from Pedro Emílio Machado de Brito's message of Mon Jun 10 02:53:22 +0200 2013: > I've been having this sort of problems with removable storage lately > (copying multiple GBs of songs in a few seconds, except not really). > The workaround I found out is to run the sync command after copying. > That could take some time as all your data is being actually written > to disk. > > I believe this is related to the write cache, please let me know if > you find a better solution to this. Forgot to mention sync. I ended equally ultra fast.
[arch-general] Super weird dd problem.
Hello, So I was creating a archlinux usb bootable drive: [root@masterkorp-laptop Downloads]# dd bs=4M if=archlinux-2013.06.01-dual.iso of=/dev/sdb 130+1 records in 130+1 records out 548405248 bytes (548 MB) copied, 0.964976 s, 568 MB/s I was like WOW, this was too fast! But nothing ever gets written to the pen drive. To add to the weird factor, a dd to dev/sdb1 (partition) works as it should, slowly. But then ofcourse the iso gets unbootable. The md5sum on the iso is correct. I tried with diferent pen drives. Please, any suggestions is welcome. -- Regards, Alfredo Palhares
Re: [arch-general] Screen Scaling Issues
Hello Mathew, > Sorry, I didn't see that you are using fglrx. I think there's a catalyst GUI > or > something with the overscan options. I can't help you there though because > I've > only ever used xf86-video-ati. Additionally, your monitor may have overscan > settings. Unfortunaly i have no choice. xf86-video-ati does not support my Ati 7750. Thanks for your help, you pointed me to sometign i could investage. So after some time here is the solution aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0 As root, this persist between reboots, but not between driver upgrades (not tested myself yet). Another option can be adding this to your $HOME/.xprofile aticonfig --set-dispattrib=dfp5,positionX:0 aticonfig --set-dispattrib=dfp5,positionY:0 aticonfig --set-dispattrib=dfp5,sizeX:1920 aticonfig --set-dispattrib=dfp5,sizeY:1080 Being dfp5 the name of your devive. also adjusting the resolution of course. -- Regards, Alfredo Palhares
Re: [arch-general] Screen Scaling Issues
Hello Mathew, Excerpts from Matthew Monaco's message of Wed Aug 08 16:21:43 +0200 2012: > Sounds like an underscan/overscan issue. Try > > xrandr --output --set underscan off masterkorp ~ $ xrandr --output DFP5 --set underscan off X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 157 (RANDR) Minor opcode of failed request: 11 (RRQueryOutputProperty) Serial number of failed request: 49 Current serial number in output stream: 49 Apereantly there is no such propriety in my system Any ideas? -- Regards, Alfredo Palhares
[arch-general] Screen Scaling Issues
Hello, i am having some problems setting up Xorg correctly. I have a ATI Radeon 7750 codename "Cape Verde" VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cape Verde PRO [Radeon HD 7700 Series] I have a problem when i start X, on 1920x1080 the screen is not fully used, i get some black border all around the screen. To "fix" this i have to open amdcccle and in the DTV(1) section -> Adjustments and on Scalling Options i have to move the bar from 0 to zero again. This does solve the problem, but it does not persist between reboots (does not change Xorg.conf at all even as root). Is it possible to set this as an option on the xord.conf ? I probably does, but I failed to find the name of that option. As attachemnt goes my catalyst config file Any sugestions are welcomne. -- Regards Alfredo Palhares 20-catalyst.conf Description: Binary data
Re: [arch-general] Need translations for small project
Hello, Sweet project, i am making something like your local repo in lua, but mine will have some build options and keep a clean PKGBUILD dir by warping makepkg with my LuaBash[1] library Good luck with yours, but i think having langueges on this type of app is unecessary, since is almost certain that most of this app userbase will have suficient english. I personally just prefer english (i am portuguese) over my native language. I dont even bother making a portuguese version, its just unnecessery work, instead i prefer a solid english that everyone can understand. On your app is even more evident that english should the only language, since you target Arch Linux users and all of them need to know english to at least read the wiki and man pages properly. I once tried to make translations but it only became a mess to maintain when everyone just prefers english. In the world of today we all should be talking the same language already. Anyways, this is just my opinion. You can (and you should, we have the right to disagre) take a diferent view on this, anyways i wish you luck. [1] https://github.com/masterkorp/LuaBash -- Regards, Alfredo Palhares
Re: [arch-general] Source control on /etc
Excerpts from Taylor Hedberg's message of Thu Feb 23 17:36:00 +0100 2012: > But that's problematic for files in /etc, many of which require specific > ownership or mode bits set/unset. You don't want your VCS to elide the > fact that /etc/shadow should only be readable by root, for instance. > > I don't think Git will change permissions on existing files in your > working directory, but if you ever cloned your /etc repo onto another > machine, the permissions would be screwed up. Yeah i agree, you should have carefull with that. I never transplant a the /etc of a machine i only use it as detailed backup. Whenever i have another machine i create a new /etc repository for it, copying manually the files i need because i dont even want the history back. You could do it with git using root and those files would be owned by root, you just need to adjust the ownerwhip like you set when you copy a file manually. In my home repo i do that and keep a branch for each computer, but on /etc repos not just because they often have very diferent distros and objectives.
Re: [arch-general] Source control on /etc
Excerpts from Matthew Monaco's message of Thu Feb 23 17:08:46 +0100 2012: > What about permissions and ownership? These are pretty important for /etc. What about those ? Git doesn't care about permissions, the only permissions that git stores is the executable bit. -- Regards, Alfredo Palhares
Re: [arch-general] Source control on /etc
Excerpts from solsTiCe d'Hiver's message of Thu Feb 23 11:55:11 +0100 2012: > "git config core.worktree /etc" is not really needed in your setup True. > I would like to suggest to use alias instead of env var. This way you > can work easily on multiple git repo in the same shell > > for example > alias etc-git='git --git-dir=/path/to/etc.git --work-dir=/etc' > alias home-git='git --git-dir=/path/to/home.git --work-dir=$HOME' #just > check that $HOME is defined This is nice, i used this for a while, but i got used to my git aliases[1] (eg gc="git commit") that i always failed the commands :P So i just use this little scrpit[2] Either way is very cool indeed. [1] https://github.com/masterkorp/Home-files/blob/master/.bash.d/aliases.bash [2] https://github.com/masterkorp/Home-files/blob/master/scripts/export_git.sh
Re: [arch-general] Scripting assistance
Hello Pete, > When i am at home i would like the laptop to mount my NAS drive on > boot always connect via ETH cable never wiFi but out if i connect > via cable or wirless do not try to mount NAS drive , My thoughts > Would it be possible to script it so that it checks for an specific MAC > address before trying to mount the NAS as IP address would not work > lots of 192.168.x.x networks out there A very simple solution would use netcfg profiles for your home network and connect to the NAS server with the POST_UP= param[1]. This would make things easier for you because you will not have to connect to the NAS on every boot (since you said its a laptop and i assume you use it on other places than your home) and only connect to the netowk you desire, either by wireless or wired. You can also add the PRE_DOWN to disconnect of your mount safely before disconnecting the network. If you desire you can set the network to start on boot (by simply adding the profile name to your rc.conf) but this will make your boot a little slower if you're not on your home (like connecting to your NAS does). [1] https://wiki.archlinux.org/index.php/Netcfg#Execute_commands_before.2Fafter_interface_up.2Fdown -- Regards, Alfredo Palhares
Re: [arch-general] Source control on /etc
Hello Don, Excerpts from Don deJuan's message of Thu Feb 23 07:35:52 +0100 2012: > What is considered the Arch way to have version control over the configs > in /etc? I would like to be able to see at least a few changes back in > my config history at the minimum. I too keep my /etc directory under version control. I have a a detached worktree. Wich enables me to have the .git directory outside of /etc. The process is simple: You create a bare repo: $ mkdir etc.git $ git init --bare Now lets congigure it to chek the files elsewhere: $ git config core.worktree /etc And export these vars to you current session $ export GIT_DIR=/path/to/etc.git $ export GIT_WORK_TREE=/etc Tip here a script[1] easy to work it. Just rember to run it with "." or "source" *not* with "sh" since it open another bash session and kills it when script is done. Now you would be able to git add and git commit in your etc while keeping it clean. :) > I have seen the package etckeeper and it does not seem to really fully > be setup to work with pacman. Both AUR packages are very outdated. etckeeper doesn't really fit pacman cause pacman doesn't merge files automatically, only apt does that (if you silly enough to configure it to do that :p ). Also etckeeper commits all the files in /etc wich makes quite dummy commits. They not really resetable... I use use it on debian server only as the last resource. The Arch way is quite simpler, every time you merge a pacnew or add a feature to a config file you commit it and keep the same workflow as a normal code repo. Much simpler. > Would I just be best off just copying the ones I change and then push > the changes to a separate dir that is under control of say git? What > methods do you employ? Well this is kinda hard to do (believe me i tried) Also having the .git on /etc and other dirs like $HOME is quite anoying since i get the (branch) in red on my bash prompt[2]. I hope this can help you. [1] https://github.com/masterkorp/Home-files/blob/master/scripts/export_git.sh [2] https://github.com/masterkorp/Home-files/blob/master/.bashrc -- Regards, Alfredo Palhares
Re: [arch-general] Join my network on LinkedIn
Please avoid things like this. Just the fact that linkedin reads your email contacts and sends this shows the "profesionalism" of it.
[arch-general] What hapenned to netcfg ?
Hello, I was just talking about this on #archlinux-offtopic. No one is acepting patches[1] to the netcfg[2] project. I aplied as mainteiner when help was asked[3] (as masterkorp) . No replies. Can i apply again ? Is anyone taking care of it? I have a a local repo with the patches and bugfixes applied. [1] https://bugs.archlinux.org/index.php?string=netcfg&project=1&search_name=&type%5B%5D=&sev%5B%5D=&pri%5B%5D=&due%5B%5D=&reported%5B%5D=&cat%5B%5D=&status%5B%5D=open&percent%5B%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=&do=index [2] https://projects.archlinux.org/netcfg.git/ [3] http://www.archlinux.org/news/contributors-wanted/ -- With the best regards, Alfredo Palhares
Re: [arch-general] Email via mutt+offlineimap+msmtp
Excerpts from Madhurya Kakati's message of Fri Jan 13 07:23:43 +0100 2012: > Mailed just to say that all of my problems have been resolved. It was a weird > bug with mutt. Yeah like, adding "Re:" on every fucking message and not using In-reply-to or References tag, and break my fucking threads. No offense :) -- With the best regards, Alfredo Palhares
Re: [arch-general] Happy new 2012 year!
One hour to go here :D
Re: [arch-general] See the llvm volumes from GRUB console
Thank you. On Tue, Oct 25, 2011 at 5:29 PM, Nyuszika7H wrote: > Hi Alfredo, > > If you've got a live CD, boot it up and execute the following commands: > > [root@archiso]# modprobe dm-mod > [root@archiso]# vgscan > Reading all physical volumes. This may take a while... > Found volume group "YourVolGroup" using metadata type lvm2 > [root@archiso]# vgchange -ay > NUM logical volume(s) in volume group "YourVolGroup" now active > [root@archiso]# lvdisplay > > > It should be possible from a serial console, too, if you can execute > /sbin/modprobe > and /sbin/lvm from there. Prefix vg- and lv- commands with /sbin/lvm. > > Yours sincerely, > nyuszika7h > > On Tue, Oct 25, 2011 at 18:06, Alfredo Palhares >wrote: > > > Hello, > > > > I upgarded a remote machine recently. And i got loocked out of the > system. > > I > > still have acess to the machine trough serial console (KVM). Is there any > > way to list the lvm volumes from there ? Since my /dev/mapper/Root-root > > doesn't work. > > > > -- > > Regards, > > Alfredo Palhares > > > -- Cumprimentos, Alfredo Palhares
[arch-general] See the llvm volumes from GRUB console
Hello, I upgarded a remote machine recently. And i got loocked out of the system. I still have acess to the machine trough serial console (KVM). Is there any way to list the lvm volumes from there ? Since my /dev/mapper/Root-root doesn't work. -- Regards, Alfredo Palhares
Re: [arch-general] Kernel.org compromised. Are Arch users safe?
What ? You make no sense 2011/9/1 Paulo Guedes > Since mirrors.kernel.org is one of the main mirrors used in Arch what's > the > best measureus to take right know? Format the computer and reinstall arch? > Uninstall any update since last week? > -- Regards, Alfredo Palhares