Обзор PAC Manager под Linux

В который раз я убеждаюсь в “силе” OpenSource. Не в той силе, что OpenSource-программы на много круче закрытых аналогов, а той, что позволяет при определенных знаниях и навыках закрыть баг самостоятельно. Помимо того , что вы получаете бесценный опыт в анализе чужого кода, вы еще и получаете моральное удовлетворение от проделанной работе. Главное не забывайте отправить багфикс автору. В конце заметки мы с вами самостоятельно исправим маленький баг в программе о которой пойдет речь.

В этот раз мне на глаза попался лучший, из всех что я видел, менеджер соединений под Linux. Для тех админов и программистов,у которых их больше трех, без удобного менеджера никуда. Для меня идеалом оказался PAC Manager. Я с легкостью настроил синхронизацию всех серверов через DropBox, да еще и подключил хранитель паролей KeePassX Manager.

По сути это просто продвинутая оболочка к таким типам подключений как:

  • SSH
  • RDP
  • MOSH
  • FTP
  • SFTP
  • SERIAL
  • VNC
  • WEBDAV

На столько продвинутая, что вы можете сами написать скрипты которые будут выполняться, например, перед подключением к серверу(например поднятие VPN-сессии).
pac

Настройка синхронизации  на моем Linux Mint свелась к переносу конфигурационных файлов PAC Manager в каталог Dropbox и созданию символической ссылки в домашнем каталоге.

mv ~/.config/pac ~/Dropbox/Tools/pac
ln ~/Dropbox/Tools/pac  ~/.config/pac

Конечно, если вы создадите новое подключение на одном рабочем месте, а потом на другом создадите другое, то изменения первого перепишутся. Но я привык после создания нового подключения сохранять настройки, хотя совсем для ленивых там есть в настройках возможность автосохранения.

pacc

Далее, что касается KeePassX. Я храню пароли именно в этом менеджере паролей. Во первых под него есть куча сторонних клиентов, а во вторых в нем есть все что необходимо для безопасного хранения паролей. Файл с базой паролей я также храню в DropBox. Для того чтобы объединить KeePassX и PAC Manager необходимо в настройках просто поставить соответсвующую галку и задать Master Password. После чего перезайти в PAC Manager, чтобы он обновил кеш с паролями. Хотя тут не обошлось без пары нюансов. Программа KeePassX под Linux(да и под Windows) при изменении пароля создает резервную копию пароля. Это с одной стороны удобно(хотя мне ни разу не понадобилось), а с другой создает трудности с поиском пароля для PAC Manager. Поэтому если вы планируйте использовать такую связку как у меня, то придется отказаться от создания резервных копий. Заходим в настройки KeePassX и отключаем соответсвующую галку:

Screenshot-Settings

Второй нюанс – это скорее просто рекомендация: для своих серверов обязатально добавьте поле URL вида SSH://[email protected]:31098 ( в примере указан протокол, пользователь, IP и порт подключения ). Этот URL мы будем использовать для того, чтобы упростить работу по поиску нужного пароля для PAC Manager.

Screenshot-192.173.0.165

Вот собственно и все что необходимо. Итак, после того как мы настроили PAC Manager переходим в основной экран и создаем новое подключение. Как я сказал раннее вам понадобиться URL, который я и вставил в соответствующее поле:

pac-edit

Чтобы проверить, что все в порядке и PAC Manager получил нужный пароль, рядом с RegExp есть кнопка Check. Сохраняем содинение и можно пробовать подключиться.

Теперь о досадном баге, который мне удалось обнаружить (Хотя не только мне одному). Если создать rdesktop(RDP) подключение и подключиться к серверу, то неверно расчитывается ширина необходимой для этого canvas. Изза этого появляются горизонтальный и вертикальный скролл, что создает некоторе неудобство:

Screenshot-PAC bug

Само исследование проблемы нельзя назвать полноценным поиском бага, так как времени на решение ушло всего пара минут. Список процессов показал, что для каждого нового таба создается отдельный процесс,а rdesktop уже является дочерним процессом. Но главное это то, что для каждого запущенного процесса rdesktop задается ( а значит расчитывается ) необходимая ширина и высота в зависимости от ширины основного окна. Посмотрим:

Screenshot-shell1

Тут сразу становиться понятно, что инициирует подключение модуль программы /opt/pac/lib/pac_conn. Поиск по команде rdesktop в этом файле  подтвердил догадку. Немного поигравшись с параметрами я нашел оптимальные для себя параметры и заменил строки 924 и 925 на указанные ниже, где -10 это как раз то значение пикселей на которое надо уменьшить разрешение rdesktop.

$connection_cmd = "$METHOD -X $$CFG{'tmp'}{'xid'} -g ".($$CFG{'tmp'}{'width'}-10)."x".($$CFG{'tmp'}{'height'}-10)." $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER -p -" ) . " $IP:$PORT";
$connection_txt = "$METHOD -X $$CFG{'tmp'}{'xid'} -g ".($$CFG{'tmp'}{'width'}-10)."x".($$CFG{'tmp'}{'height'}-10)." $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER -p -" ) . " $IP:$PORT";

А вот и результат. Совсем другое дело:

Screenshot-pacres

Всем спасибо за внимание. Надеюсь, эта заметка будет вам полезна.

178 комментариев к “Обзор PAC Manager под Linux

  1. I?m pleased, I must state. Actually hardly ever do I come across a blog site that?s both informative as well as entertaining, and let me inform you, you have hit the nail on the head. Your concept is impressive; the problem is something that inadequate individuals are speaking smartly about. I am really pleased that I stumbled across this in my look for something connecting to this.

  2. Can I simply say what a relief to discover somebody who actually understands what theyre discussing on the internet. You absolutely know just how to bring a problem to light and make it important. Even more people need to read this and understand this side of the tale. I cant think youre not more prominent due to the fact that you most definitely have the gift.

  3. Can I simply say what a relief to discover somebody that actually recognizes what theyre speaking about online. You absolutely recognize how to bring a concern to light and make it vital. More individuals require to read this and understand this side of the story. I cant think youre not much more preferred since you absolutely have the gift.

  4. There are certainly a lot of information like that to take into account. That is a fantastic indicate bring up. I provide the thoughts over as general ideas but plainly there are inquiries like the one you raise where the most vital point will be operating in truthful good faith. I don?t recognize if ideal methods have emerged around points like that, yet I make certain that your work is clearly identified as a level playing field. Both boys and also girls feel the effect of simply a moment?s pleasure, for the rest of their lives.

  5. Youre so awesome! I do not suppose Ive check out anything similar to this before. So good to find someone with some initial ideas on this subject. realy thanks for beginning this up. this site is something that is needed online, someone with a little originality. valuable job for bringing something brand-new to the web!

  6. Hey! I know this is somewhat off topic but I was
    wondering which blog platform are you using for this website?
    I’m getting fed up of WordPress because I’ve had problems with hackers and I’m looking at alternatives for another platform.
    I would be fantastic if you could point me in the direction of a
    good platform. cheap flights 34pIoq5

  7. I am now not positive the place you are getting your information, but good topic.
    I must spend some time studying more or working out more. Thank you for fantastic info I was searching for
    this info for my mission.

  8. May I just say what a comfort to uncover a person that genuinely
    understands what they are discussing on the internet.

    You definitely know how to bring a problem to light and make it important.
    A lot more people must look at this and understand this side of
    the story. I was surprised that you aren’t more popular
    given that you most certainly have the gift.

  9. I really like your blog.. very nice colors & theme.
    Did you create this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to construct my own blog and would like to know where u got this from.
    thanks

  10. I will right away clutch your rss feed as I can not to find
    your email subscription link or newsletter service.
    Do you’ve any? Please let me realize in order that I could subscribe.
    Thanks.

  11. Wonderful beat ! I wish to apprentice while you amend your
    website, how can i subscribe for a blog web site? The account helped me a acceptable deal.
    I had been a little bit acquainted of this your broadcast offered bright clear concept

  12. An outstanding share, I just provided this onto a colleague that was doing a little evaluation on this. And he in fact acquired me breakfast since I found it for him. smile. So let me rephrase that: Thnx for the treat! Yet yeah Thnkx for investing the time to discuss this, I feel highly concerning it and also enjoy learning more on this topic. When possible, as you become competence, would certainly you mind upgrading your blog site with more details? It is highly helpful for me. Large thumb up for this article!

  13. After study a few of the blog posts on your internet site now, and I truly like your way of blogging. I bookmarked it to my bookmark site listing and will certainly be examining back quickly. Pls take a look at my internet site as well as well as let me recognize what you assume.

  14. Howdy are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you require any html coding knowledge to make your own blog? Any help would be greatly appreciated!

  15. Hello! I could have sworn I’ve been to this site before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely glad I found it and I’ll be book-marking and checking back often!

  16. Greetings from Ohio! I’m bored at work so I decided to browse your blog on my iphone during lunch break. I enjoy the information you provide here and can’t wait to take a look when I get home. I’m surprised at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyhow, excellent site!

  17. Hi, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you reduce it, any plugin or anything you can advise? I get so much lately it’s driving me crazy so any assistance is very much appreciated.

  18. Howdy! Someone in my Myspace group shared this website with us so I came to give it a look. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers! Great blog and wonderful design and style.

  19. Greetings! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done a outstanding job!

  20. Do you have a spam issue on this site; I also am a blogger, and I was wondering your situation; many of us have created some nice procedures and we are looking to swap methods with others, please shoot me an e-mail if interested.

  21. First off I would like to say fantastic blog! I had a quick question which I’d like to ask if you do not mind. I was interested to know how you center yourself and clear your thoughts before writing. I’ve had difficulty clearing my thoughts in getting my ideas out. I do enjoy writing however it just seems like the first 10 to 15 minutes are wasted just trying to figure out how to begin. Any recommendations or hints? Kudos!

  22. Youre so cool! I dont suppose Ive read something similar to this before. So nice to get somebody by incorporating authentic applying for grants this subject. realy appreciation for starting this up. this site are some things that’s needed online, somebody after some bit originality. helpful task for bringing new things on the web!

  23. Does your blog have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail. I’ve got some ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it grow over time.

  24. Greetings! This is my first visit to your blog! We are a team of volunteers and starting a new project in a community in the same niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

  25. I am curious to find out what blog system you happen to be using? I’m having some minor security problems with my latest blog and I would like to find something more safeguarded. Do you have any recommendations?

  26. Hey there this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

  27. There are absolutely a great deal of information like that to take into consideration. That is a wonderful point to bring up. I provide the ideas over as general ideas yet clearly there are questions like the one you bring up where the most essential thing will be operating in honest good faith. I don?t recognize if ideal practices have actually emerged around points like that, however I make sure that your work is plainly identified as a fair game. Both kids as well as girls feel the influence of just a moment?s pleasure, for the remainder of their lives.

  28. My spouse and I absolutely love your blog and find a lot of your post’s to be exactly what I’m looking for. Would you offer guest writers to write content in your case? I wouldn’t mind writing a post or elaborating on a few of the subjects you write regarding here. Again, awesome blog!

  29. Howdy, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you prevent it, any plugin or anything you can recommend? I get so much lately it’s driving me insane so any support is very much appreciated.

  30. Today, I went to the beach with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  31. Hey! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no backup. Do you have any methods to protect against hackers?

  32. Today, I went to the beach front with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  33. Hey there! I realize this is kind of off-topic but I had to ask. Does operating a well-established website such as yours take a lot of work? I’m completely new to operating a blog however I do write in my journal daily. I’d like to start a blog so I can share my experience and feelings online. Please let me know if you have any suggestions or tips for new aspiring bloggers. Thankyou!

  34. Hello there! Quick question that’s completely off topic. Do you know how to make your site mobile friendly? My blog looks weird when browsing from my iphone4. I’m trying to find a theme or plugin that might be able to fix this problem. If you have any suggestions, please share. Appreciate it!

  35. Very good site you have here but I was wondering if you knew of any community forums that cover the same topics discussed here? I’d really love to be a part of group where I can get feedback from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Thank you!

  36. I’m really loving the theme/design of your web site. Do you ever run into any web browser compatibility issues? A number of my blog audience have complained about my site not operating correctly in Explorer but looks great in Chrome. Do you have any solutions to help fix this problem?

  37. I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to design my own blog and would like to find out where u got this from. appreciate it

  38. Hmm it looks like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to everything. Do you have any tips and hints for beginner blog writers? I’d certainly appreciate it.

  39. My spouse and I absolutely love your blog and find most of your post’s to be precisely what I’m looking for. Do you offer guest writers to write content for yourself? I wouldn’t mind publishing a post or elaborating on most of the subjects you write in relation to here. Again, awesome site!

  40. With havin so much written content do you ever run into any problems of plagorism or copyright infringement? My blog has a lot of completely unique content I’ve either written myself or outsourced but it looks like a lot of it is popping it up all over the web without my authorization. Do you know any ways to help prevent content from being ripped off? I’d really appreciate it.

  41. I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to know where u got this from. cheers

  42. Howdy great blog! Does running a blog similar to this take a great deal of work? I’ve very little knowledge of computer programming but I was hoping to start my own blog soon. Anyways, should you have any ideas or tips for new blog owners please share. I understand this is off topic but I simply had to ask. Appreciate it!

  43. Hi there would you mind stating which blog platform you’re using? I’m planning to start my own blog soon but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something unique. P.S Sorry for being off-topic but I had to ask!

  44. I just want to say I am just all new to blogs and really loved this web site. More than likely I’m likely to bookmark your website . You certainly have outstanding writings. Regards for sharing your blog.

  45. I simply want to say I’m newbie to blogging and site-building and truly loved you’re blog. More than likely I’m planning to bookmark your site . You actually have wonderful stories. Kudos for revealing your web page.

  46. I simply want to say I’m beginner to weblog and actually liked you’re page. Most likely I’m likely to bookmark your blog post . You certainly have amazing posts. Thanks a bunch for sharing your web-site.

  47. My husband and i felt so excited that Emmanuel managed to carry out his survey through your ideas he received from your very own web pages. It’s not at all simplistic to simply continually be giving out key points that people could have been making money from. So we acknowledge we have got the website owner to appreciate for that. All the explanations you have made, the easy web site navigation, the friendships you make it easier to create – it’s everything astonishing, and it’s aiding our son and us understand the issue is interesting, which is wonderfully fundamental. Thank you for the whole thing!

  48. Hmm it appears like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but I’m still new to the whole thing. Do you have any recommendations for rookie blog writers? I’d genuinely appreciate it.

  49. Hi, Neat post. There is a problem with your web site in internet explorer, would test this… IE still is the market leader and a good portion of people will miss your fantastic writing due to this problem.

  50. I simply want to tell you that I am just all new to blogging and site-building and seriously enjoyed you’re web-site. Likely I’m want to bookmark your site . You certainly have beneficial stories. Thanks a bunch for revealing your web-site.

  51. I’m also commenting to make you be aware of of the terrific discovery my friend’s girl enjoyed studying yuor web blog. She came to understand many things, not to mention how it is like to possess an awesome helping nature to get certain people with no trouble fully understand various specialized subject matter. You really surpassed our expectations. Many thanks for displaying such warm and helpful, safe, revealing as well as fun tips on this topic to Emily.

  52. I just want to say I am all new to blogs and certainly savored your web blog. Almost certainly I’m want to bookmark your site . You definitely have perfect stories. Many thanks for sharing with us your blog site.

  53. Great blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your design. Appreciate it

  54. An intriguing discussion is definitely worth comment. I believe that you need to publish more on this issue, it might not be a taboo matter but typically people don’t talk about such topics. To the next! Kind regards!!

  55. This is really interesting, You’re a very skilled blogger. I’ve joined your rss feed and look forward to seeking more of your fantastic post. Also, I have shared your website in my social networks!

  56. I do know this isn’t precisely on subject, however i’ve a site using the identical program as properly and i get troubles with my feedback displaying. is there a setting i am missing? it’s doable chances are you’ll assist me out? thanx.

  57. You could certainly see your enthusiasm within the paintings you write. The world hopes for even more passionate writers like you who are not afraid to mention how they believe. All the time go after your heart.

  58. you are really a just right webmaster. The website loading velocity is amazing. It seems that you are doing any unique trick. Furthermore, The contents are masterpiece. you’ve performed a fantastic job on this topic!

  59. The very next time I read a blog, I hope that it won’t disappoint me just as much as this particular one. After all, Yes, it was my choice to read through, nonetheless I truly thought you would have something useful to talk about. All I hear is a bunch of complaining about something you could possibly fix if you were not too busy searching for attention.

  60. I am often to blogging and i really recognize your content. The article has really peaks my interest. I’m going to bookmark your site and maintain checking for brand new information.

  61. Greetings I am so glad I found your site, I really found you by error, while I was searching on Aol for something else, Nonetheless I am here now and would just like to say thanks a lot for a remarkable post and a all round entertaining blog (I also love the theme/design), I don’t have time to read it all at the minute but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the fantastic work.

  62. Today, while I was at work, my sister stole my iphone and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views. I know this is totally off topic but I had to share it with someone!

  63. Hello very cool website!! Man .. Beautiful .. Superb .. I will bookmark your website and take the feeds also¡KI’m satisfied to find so many useful info right here in the publish, we need work out extra strategies on this regard, thanks for sharing. . . . . .

  64. Next time I read a blog, I hope that it does not fail me as much as this one. After all, I know it was my choice to read through, nonetheless I truly believed you would probably have something useful to say. All I hear is a bunch of crying about something that you could fix if you weren’t too busy searching for attention.

  65. Unquestionably believe that which you said. Your favorite justification seemed to be on the net the easiest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side-effects , people can take a signal. Will likely be back to get more. Thanks

  66. I have to thank you for the efforts you have put in penning this website. I am hoping to see the same high-grade content by you later on as well. In truth, your creative writing abilities has encouraged me to get my own blog now 😉

  67. Woah! I’m really digging the template/theme of this website. It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between superb usability and visual appearance. I must say you’ve done a very good job with this. In addition, the blog loads extremely fast for me on Firefox. Excellent Blog!

  68. Hi, I do believe this is an excellent website. I stumbledupon it 😉 I may come back once again since I book marked it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

  69. Undeniably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they plainly do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

  70. Having read this I thought it was rather enlightening. I appreciate you finding the time and effort to put this content together. I once again find myself personally spending a lot of time both reading and commenting. But so what, it was still worthwhile!

  71. Have you ever thought about adding a little bit more than just your articles? I mean, what you say is fundamental and all. Nevertheless think about if you added some great visuals or video clips to give your posts more, “pop”! Your content is excellent but with pics and clips, this website could certainly be one of the best in its field. Very good blog!

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *